package org.dromara.merchants.domain.bo;

import org.dromara.merchants.domain.TaCustomClassification;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 特色分类业务对象 ta_custom_classification
 *
 * @author xiyin321
 * @date 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TaCustomClassification.class, reverseConvertGenerate = false)
public class TaCustomClassificationBo extends BaseEntity {

    /**
     * 特色分类编号
     */
    @NotNull(message = "特色分类编号不能为空", groups = { EditGroup.class })
    private Long classificationId;

    /**
     * 分类名
     */
    @NotBlank(message = "分类名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classificationName;

    /**
     * 所属店铺id
     */
    @NotNull(message = "所属店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 分类类型
     */
    private String type;
    /**
     * 分类图标url
     */
    private Long icon;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;


}
